* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 头部样式 */

.header {
    background-color: #165DFF;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s;
}

.action-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* 表格样式 */

.file-table {
    width: 100%;
    border-collapse: collapse;
}

.file-table th,
.file-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eaecef;
}

.file-table th {
    background-color: #f2f3f5;
    color: #667085;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.file-table tr:hover {
    background-color: #f9fafb;
}

.file-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background-color: #f2f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #4e5969;
    font-size: 1.2rem;
}

.file-icon.red {
    background-color: #fee2e2;
    color: #ef4444;
}

.file-icon.blue, .file-icon.blue {
    background-color: #e0f2fe;
    color: #3b82f6;
}

.file-icon.green {
    background-color: #d1fae5;
    color: #10b981;
}

.file-icon.orange {
    background-color: #fef3c7;
    color: #f59e0b;
}

.file-icon.purple {
    background-color: #ede9fe;
    color: #8b5cf6;
}

.file-icon.yellow {
    background-color: #ede9fe;
    color: #8b5cf6;
}

.file-icon.coral {
    background-color: #ff7f504d;
    color: coral;
}

.file-icon.crimson {
    background-color: #ed143d61;
    color: crimson;
}

/* .file-icon.gray { background-color: #ede9fe; color: #4e5969; } */

.file-info {
    display: flex;
    align-items: center;
}

.file-name {
    font-weight: 500;
    margin-bottom: 3px;
}

.file-type {
    font-size: 0.8rem;
    color: #667085;
}

.file-actions {
    display: flex;
    gap: 10px;
}

.action-link {
    color: #4e5969;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 4px;
    transition: all 0.3s;
}

.action-link:hover {
    background-color: #f2f3f5;
}

.action-link.delete {
    color: #ef4444;
}

.action-link.download {
    color: #3b82f6;
}

.upload-btn {
    background-color: #165DFF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s;
}

.upload-btn:hover {
    background-color: #0d47a1;
}



.table-shadow {
    box-shadow: 0 2px 14px 0 rgba(0, 0, 0, 0.06);
}

.hover-scale {
    transition: transform 0.2s ease-in-out;
}

.hover-scale:hover {
    transform: scale(1.02);
}

fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.uploadContainer {
    background-color: rgb(0 0 0 / 0.5);
    justify-content: center;
    align-items: center;
    display: flex;
    z-index: 50;
    inset: 0px;
    position: fixed;
}

.upload {
    width: 480px;
    tw-bg-opacity: 1;
    background-color: rgb(255, 255, 255, 1);
    border-radius: 20px;
    padding: 24px;
}

.upload-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.upload-title .close {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
}

.upload-title .close i:before {
    border-color: #e5e7eb;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-style: dashed;
    border-width: 2px;
    padding: 32px;
    border-color: #e5e6eb;
}

.upload-content .text {
    color: #4e5969;
    padding-bottom: 7px;
}

.upload-icon {
    font-size: 50px;
    color: #e5e7eb;
    margin-bottom: 10px;
}

.hidden {
    display: none;
}

.cursor-pointer {
    display: inline-block;
    background-color: #165dff;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
}

.upload-footer {

    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
}

.upload-footer .bg-gray {
    font-size: 16px;
    flex: 1 1 0%;
    border-color: #e5e6eba3;
    color: #1D2129;
    outline: unset;
    border-width: 1px;
    padding: 8px 16px;
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
}

.upload-footer .bg-primary {
    font-size: 16px;
    flex: 1 1 0%;
    border: none;
    outline: unset;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    margin-left: 10px;
    background-color: #165dff;
    cursor: pointer;
}

.upload-footer .bg-gray:hover , .upload-footer .bg-primary:hover, .upload-footer:hover {
    opacity: 0.8;
}
